<!DOCTYPE html>
<html>
<head>
  <title>品牌列表</title>
</head>
<body>
<a href="admin.php?c=carphoto&m=listcarphoto">汽车列表</a>
<a href="admin.php?c=cartype&m=listcartype">类型列表</a>
<a href="admin.php?c=carbrand&m=carbrandform">添加品牌</a>

<h1><center>品牌列表</center></h1>
 <table align="center" border="1"> 
 <tr>
  <th>品牌</th>
 </tr>
<?php
  //define('UserPhotoPath','images/');
  //static $count=0;
  foreach($data as $one){
    //$count++;
    echo '<td>'.$one['bid'].'</td>';
    echo '<td>'.$one['carbrandname'].'</td>';
    /*if($one['tid']==1){
      echo '<td>电影</td>';
    } else if($one['tid']==2){
      echo '<td>动漫</td>';
    } else if($one['tid']==3){
      echo '<td>电视剧</td>';
    }

    echo '<td align="center">
      <img src='.UserPhotoPath.$one['pic'].' width=100 height=120 alt="无海报"></td>';
    echo '<td>'.$one['intro'].'</td>';
    echo '<td>'.$one['uploaddate'].'</td>';
    echo '<td>'.$one['uploadadmin'].'</td>';
    echo '<td>'.$one['hittimes'].'</td>';
    echo '<td>'.$one['downtimes'].'</td>';
    echo '<td>'.$one['address'].'</td>';*/
    echo '<td>
    <a href="admin.php?c=carbrand&m=carbrandedit&id='.$one['bid'].' ">修改</a>| 
    <a href="admin.php?c=carbrand&m=delcarbrand&id='.$one['bid'].'" onClick="return confirm(\'确定要删除吗？\');">删除</a>
     </td>';
    echo '</tr>';  
  }
  echo '</table>';  
  //echo "<table align='center'><tr><td>共有 {$count} 名用户</td></tr></table>";   
 ?>
 </body>
</html>